package com.vietnam.power.domain;

import java.io.Serializable;
import java.util.Date;

public class AppConfiguration {
	private int id;
	private Date createdDate;
	private String description;
	private String name;
	private int threshold;

	public AppConfiguration() {
	}

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public Date getCreatedDate() {
		return this.createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getThreshold() {
		return this.threshold;
	}

	public void setThreshold(int threshold) {
		this.threshold = threshold;
	}

	public void convertToDomain(com.vietnam.power.persitence.AppConfiguration acf) {
		this.id= acf.getId();
		this.createdDate = acf.getCreatedDate();
		this.description = acf.getDescription();
		this.name = acf.getName();
		this.threshold = acf.getThreshold();
	}
}